/*
 * @Author: 刘岩 15136056318@163.com
 * @Date: 2023-11-03 17:27:12
 * @LastEditors: LiuYan 15136056318@163.com
 * @LastEditTime: 2023-11-30 09:33:00
 * @FilePath: \react-template_pc\src\App.tsx
 * @Description:
 */
import { useRoutes } from 'react-router-dom'
import '@scss/global.scss'
import routes from './routers'
import RouterGuard from './components/router-guard'
function App() {
  const element = useRoutes(routes)
  return (
    <>
      {/* 路由拦截 */}
      <RouterGuard>
        {/* 路由 */}
        <>{element}</>
      </RouterGuard>
    </>
  )
}

export default App
